# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=xsecurelock
pkgver=1.7.0
pkgrel=1
pkgdesc="X11 screen lock utility with security in mind"
url="https://github.com/google/xsecurelock"
arch="all"
license="Apache-2.0"
options="!check" # no test suite
makedepends="
	autoconf
	automake
	libx11-dev
	libxcomposite-dev
	libxext-dev
	libxfixes-dev
	libxft-dev
	libxmu-dev
	libxrandr-dev
	libxscrnsaver-dev
	xorgproto
	linux-pam-dev
	pkgconf
	"
subpackages="$pkgname-doc"
source="https://github.com/google/xsecurelock/archive/refs/tags/v$pkgver.zip"

prepare() {
	default_prepare
	sh autogen.sh
}

build() {
	./configure --prefix=/usr --with-pam-service-name=su
	make GIT_VERSION="$pkgver"
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6e79b6c3f93b72dc2c51e89194a3f1f3866929dd7ae8df73dc77b0da335762c3898c00289965dfb3d4eda10cd7d4f544b18d9fca470aa63824c603c58855ae80  v1.7.0.zip"
